Skip to content

feat(vhdbuilder): add initial node image compatibility feature matrix - #10259

Open
Cameron Meissner (cameronmeissner) wants to merge 7 commits into
devfrom
cameissner/sla-compat-v2
Open

Cameron Meissner (cameronmeissner) wants to merge 7 commits into
devfrom
cameissner/sla-compat-v2

Conversation

@cameronmeissner

@cameronmeissner Cameron Meissner (cameronmeissner) commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Introduces an explicit, machine-readable node image feature compatibility matrix under vhdbuilder/compatibility/features/. The initial matrix contains 29 per-feature JSON files, covering 49 Linux and Windows gallery image definitions, plus a README documenting the schema and maintenance requirements.

Matrix structure

Each feature has its own lowercase filename, such as httpproxy.json, with three top-level fields:

  • tagName identifies the feature using its intended tag casing, such as httpProxy, localDNS, or gpuMIGProfiles.
  • isEnum distinguishes boolean features from features with individually supported settings.
  • compatibility records support using exact, case-sensitive Shared Image Gallery / Azure Compute Gallery image definition names, such as 2204gen2fipsTLcontainerd, V3gen2, or aclgen2arm64fipsTL, rather than Distro identifiers or pipeline job names.

For boolean features, compatibility directly maps each image definition to true or false. For enum-valued features, it contains a separate image-definition-to-boolean mapping for each setting. For example, gpuDevicePluginMode distinguishes devicePlugin from dra, while windowsGpuDriverType distinguishes CUDA from GRID. Supporting one setting does not imply support for the others.

Every feature mapping, including every enum-setting mapping, explicitly includes every image definition in scope. Unsupported combinations are represented by false; missing entries are incomplete data, not an implicit support decision. Image definition keys use consistent ordering across the files.

The matrix covers networking, image streaming and bootstrap capabilities, GPU configuration, security-related features, and Windows-specific capabilities such as GMSA, DSR, CSI proxy, SSH, next-generation networking, and accelerated networking.

What the matrix will be used for

These files will provide the compatibility input used to construct the tagging goal for official AKS node image releases: the desired feature-support metadata associated with images published to the gallery. Release tooling can look up an image definition across the feature files and derive its supported boolean features and enum settings, preserving the distinctions between individual settings.

This establishes a reviewable, version-controlled basis for publishing image compatibility metadata that downstream consumers can use for feature discovery and compatibility decisions. It separates the feature-support declaration from the tooling that publishes or consumes it.

Compatibility means that an image can support a feature, not that the feature is enabled by default or usable in every cluster configuration. Kubernetes version, VM SKU, network configuration, feature registration, and other runtime requirements still apply.

This PR adds the matrix data and documentation only. It does not implement tag publication, change API behavior, retag previously published images, or enable features on running nodes. Tagging automation and downstream integration are separate work.

Maintenance and ownership

Adding a new image or retiring an older image requires updating all feature files and all enum-setting mappings together. This includes changes to which jobs are enabled by default in either the Linux or Windows VHD release pipeline. New images must receive explicit support values for every feature; they must not silently inherit support from another image. Removing one feature's support for an image that remains in scope means changing that value to false, not deleting the image entry.

Ownership will be assigned to individual feature files in a series of follow-up PRs, so the responsible feature teams can review and maintain their compatibility declarations as support evolves.

Which issue(s) this PR fixes:

None.

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   21 suites   1m 20s ⏱️
817 tests 817 ✅ 0 💤 0 ❌
844 runs  844 ✅ 0 💤 0 ❌

Results for commit 30cbf56.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The compatibility matrices incorrectly mark Windows IMDS restriction as unsupported and FIPS LocalDNS combinations as supported, while omitting the supported none network-plugin option.

2 open issues
What changed in this PR

Adds declarative feature-compatibility data for AgentBaker’s AKS node-image release tagging. Tag publishing and node provisioning remain unchanged.

Changes:

  • Adds 29 feature matrices covering 49 Linux and Windows image definitions.
  • Records boolean capabilities and individual enum settings.
  • Documents the format, tagging usage, and coverage-maintenance rules.
File Description
vhdbuilder/​compatibility/​features/​windowsssh.json Windows SSH support.
vhdbuilder/​compatibility/​features/​windowsnextgennetworking.json Windows next-generation networking support.
vhdbuilder/​compatibility/​features/​windowsincreaseddynamicportrange.json Windows expanded dynamic-port support.
vhdbuilder/​compatibility/​features/​windowsgpudrivertype.json Windows CUDA and GRID driver support.
vhdbuilder/​compatibility/​features/​windowsgmsa.json Windows managed service-account support.
vhdbuilder/​compatibility/​features/​windowsdsr.json Windows direct server return support.
vhdbuilder/​compatibility/​features/​windowsdisableoutboundnat.json Windows outbound NAT disabling support.
vhdbuilder/​compatibility/​features/​windowscsiproxy.json Windows CSI Proxy support.
vhdbuilder/​compatibility/​features/​windowsacceleratednetworking.json Windows accelerated networking support.
vhdbuilder/​compatibility/​features/​serviceaccountimagepull.json Service-account image-pull support.
vhdbuilder/​compatibility/​features/​README.md Matrix format, usage, and maintenance guidance.
vhdbuilder/​compatibility/​features/​nodehardening.json Node-hardening support.
vhdbuilder/​compatibility/​features/​networkpolicy.json Per-provider network-policy support.
vhdbuilder/​compatibility/​features/​networkplugin.json Per-mode network-plugin support.
vhdbuilder/​compatibility/​features/​networkisolatedcluster.json Network-isolated cluster support.
vhdbuilder/​compatibility/​features/​networkaccelerationmode.json Per-mode network-acceleration support.
vhdbuilder/​compatibility/​features/​localdns.json LocalDNS support.
vhdbuilder/​compatibility/​features/​imdsrestriction.json Instance metadata access-restriction support.
vhdbuilder/​compatibility/​features/​httpproxy.json HTTP proxy support.
vhdbuilder/​compatibility/​features/​gpumigprofiles.json GPU multi-instance profile support.
vhdbuilder/​compatibility/​features/​gpumanagementmode.json Managed GPU support.
vhdbuilder/​compatibility/​features/​gpuinstanceprofiles.json GPU instance-profile support.
vhdbuilder/​compatibility/​features/​gpudrivermode.json GPU driver installation-mode support.
vhdbuilder/​compatibility/​features/​gpudevicepluginmode.json GPU device-plugin and resource-allocation support.
vhdbuilder/​compatibility/​features/​dualstacknetworking.json Dual-stack networking support.
vhdbuilder/​compatibility/​features/​customca.json Custom certificate-authority support.
vhdbuilder/​compatibility/​features/​ciliumdataplane.json Cilium dataplane support.
vhdbuilder/​compatibility/​features/​bootstrapartifactcache.json Bootstrap artifact-cache support.
vhdbuilder/​compatibility/​features/​artifactstreaming.json Artifact-streaming support.
vhdbuilder/​compatibility/​features/​acceleratednetworking.json Accelerated networking support.

Review effort: Max

Comment on lines +13 to +14
"2204gen2fipsTLcontainerd": true,
"2204gen2fipscontainerd": true,
Comment on lines +3 to +4
"isEnum": true,
"compatibility": {
Copilot AI max review requested due to automatic review settings December 4, 2026 17:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Compatibility mappings advertise unsupported LocalDNS/FIPS combinations, hide implemented Windows IMDS restriction and ACL MIG capabilities, and omit the supported none network-plugin option.

2 open issues
3 previously missed issues

In code that hasn't changed since last review

Medium severity Mark x86 ACL images as supporting MIG layouts

vhdbuilder/​compatibility/​features/​gpumigprofiles.json:40

🟡 Medium Risk — 🏗️ Architecture: Both x86 ACL images ship the MIG service (vhdbuilder/packer/vhd-image-builder-acl.json:293,693), which accepts NVIDIA_MIG_PROFILE_LAYOUT through ensureMigPartition. These false values would omit an implemented MIG-layout capability from the tagging goal. Set this entry and aclgen2fipsTL at line 40 to true.

Medium severity Mark Windows images as supporting IMDS restriction

vhdbuilder/​compatibility/​features/​imdsrestriction.json:45

🟡 Medium Risk · 🖥️ Cross-OS: Windows already supports this configuration: kuberneteswindowssetup.ps1.template:149 passes EnableIMDSRestriction into NodePrep, and staging/cse/windows/azurecnifunc.ps1:218-234 adds the IMDS-blocking ACL, covered by azurecnifunc.tests.ps1:427-440. Marking all Windows images unsupported would make the tagging goal hide an implemented capability. Please set these entries to true to match the documented “can support” semantics.

Medium severity Mark Azure Linux and ACL FIPS images as LocalDNS-unsupported

vhdbuilder/​compatibility/​features/​localdns.json:40

🟡 Medium Risk — 🖥️ Cross-OS: Existing Azure Linux and ACL scenarios explicitly disable LocalDNS on FIPS images (e2e/scenario/scenario.go:213–245, e2e/scenario/scenario_cosi.go:272–273). These true values would advertise configurations that are currently unsupported. Set the Azure Linux/OSGuard and ACL FIPS entries at lines 24, 26, 31–32, and 38–40 to false.

Review effort: Max

"tagName": "ciliumDataplane",
"isEnum": false,
"compatibility": {
"2004fipscontainerd": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20.04 isn't compatible with cilium

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

"2004fipscontainerd": true,
"2004gen2CVMcontainerd": true,
"2004gen2fipscontainerd": true,
"2204containerd": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

22.04 is compatible with cilium legacy host routing, but not with eBPF host routing - we block it explicitly in RP.

@santhoshmprabhu Santhosh Prabhu (santhoshmprabhu) Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More generally, our validation for eBPF host routing in RP checks for -

  • Ubuntu 24/26 or AzLinux 3.
  • CVM/Kata shouldn't be enabled.

This precludes ACL entirely and Kata and CVM with other OSes. https://msazure.visualstudio.com/CloudNativeCompute/_git/aks-rp?path=/resourceprovider/server/microsoft.com/containerservice/server/validation/advancednetworkingprofile/advancednetworkingprofile.go&version=GBagentfabric-eno&_a=contents

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be a good idea to call out acns-performance-suite as a separate tag, to cover eBPF host routing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so right now I guess cilium support isn't represented in the best way - it's currently split across ciliumDataplane, networkPolicy, and networkAccelerationMode

based on your feedback, would this be a better approach?:

  • declare cilium networkPolicy support if the image supports either legacy or eBPF host routing
  • coalesce theciliumDataplane feature into another ENUM value of networkPlugin called cilium
    • declare networkPlugin=cilium support if the image supports either legacy or eBPF host routing
  • keep networkAccelerationMode as-is

right now bpfVeth is used to represent eBPF host routing support - at this point I think that matrix should be correct?

I've also corrected the 20.04 cases you pointed out

@santhoshmprabhu Santhosh Prabhu (santhoshmprabhu) Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I hadn't realized networkaccelerationmode was refering to eBPF host routing. Legacy implies ebpf host routing support for sure. Further, all images that support cilium legacy host routing can also support policy. So, your suggestion would be fine, networkPolicy only needs to look at legacy host routing support. Treating ciliumDataplane as an enum value for networkPlugin is fine, though I don't see a need for it. This file as it is today can capture legacy support, keep networkAccelerationMode as is, and networkPolicy=cilium is basically the same as this file. I'll defer to John Payne (@jpayne3506) on specific kernel requirements for each version of cilium.

"2404gen2CVMcontainerd": true,
"2404gen2TLcontainerd": true,
"2404gen2arm64containerd": true,
"2404gen2arm64gbcontainerd": false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a certain reason why gb is not allowed for node hardening?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably check with Xu Xue (@xuexu6666) for confirmation

@@ -0,0 +1,47 @@
{

@jpayne3506 John Payne (jpayne3506) Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General guidance on what cilium requirements should cross with.
Minimum Kernel Requirement: 5.12
BPF-LSM
No windows support

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have deployments that only need 5.7/5.10, but those same clusters can have features enabled that will require 5.12. Current feature ceiling is 5.12.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going off the README, can we create new arrays that contain our image difference in min requirements and potentially save space..? What is the best use case for this?
i.e.

"compatibility": {
     "cilium-1.19": {
         "2004fipscontainerd": true,
          ....
      }
     {
     "cilium-1.20": {
         "2004fipscontainerd": false,
          ....
      }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also asked on Santhosh Prabhu (@santhoshmprabhu), but is there a case for representing cilium compatibility without BPF-LSM (which I'm assuming is what's being referred to as legacy host routing)?

@santhoshmprabhu Santhosh Prabhu (santhoshmprabhu) Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cilium legacy host routing is the most common case of cilium deployments. eBPF host routing is opt in, and not planned to be default. It comes with several tradeoffs. BPF LSM is needed only for eBPF host routing support, so we can populate legacy host routing support independent of LSM BPF status.

Copilot AI max review requested due to automatic review settings December 4, 2026 22:56
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
parts_windows Package 1 74% ➖
staging_cse_windows Package 1 72% ➖
debug 0% ❌
provisioningscripts 2% ❌
Summary 40% (2077 / 7276) ❌

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 32% ❌
Summary 32% (5593 / 17340) ❌

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-live-patching/pkg/status 100% ✔
github.com/Azure/agentbaker/apiserver 52% ❌
github.com/Azure/agentbaker/cmd 0% ❌
github.com/Azure/agentbaker/cmd/starter 0% ❌
github.com/Azure/agentbaker/fuzz/api 0% ❌
github.com/Azure/agentbaker/hotfix/render-nodecustomdata 35% ❌
github.com/Azure/agentbaker/pkg/agent 79% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 78% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
github.com/Azure/agentbaker/aks-node-controller 74% ➖
github.com/Azure/agentbaker/aks-node-controller/common 100% ✔
github.com/Azure/agentbaker/aks-node-controller/config 66% ➖
github.com/Azure/agentbaker/aks-node-controller/generalize 80% ✔
github.com/Azure/agentbaker/aks-node-controller/helpers 68% ➖
github.com/Azure/agentbaker/aks-node-controller/internal/localdns 81% ✔
github.com/Azure/agentbaker/aks-node-controller/parser 89% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/gpu 100% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils 92% ✔
github.com/Azure/agentbaker/aks-node-controller/utils 0% ❌
Summary 84% (7045 / 9148) ✔

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Compatibility metadata incorrectly advertises LocalDNS support for Ubuntu 22.04 FIPS images and omits the supported 'none' network-plugin setting.

2 open issues

Review effort: Max

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants